package com.globalblue;

import javax.swing.JOptionPane;

import com.globalblue.view.ImprovedMainWindow;

public class ErrorHandler {
	public static void showErrorMessage(ImprovedMainWindow window, String text) {
		window.dispose();
		WindowManager manager = new WindowManager();
		manager.loadWindow();
		JOptionPane.showMessageDialog(window.getFrame(), text);
	}
}
